package com.cne.gmail.Gmail.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import java.util.List;
@Document(collection = "mailInbox")
@ApiModel(value="messageModel",description="邮箱内容")
@Data
@ToString
public class MessageModel implements Cloneable {
    @ApiModelProperty(name = "emailAddress",value = "邮箱地址",example = "zhangxuan321@gmail.com")
    private String emailAddress;
    @Id
    @ApiModelProperty(name = "messageId",value = "邮件id",example = "2233")
    private String messageId;
    @ApiModelProperty(name = "userName",value = "用户",hidden = true)
    private String userName;
    @ApiModelProperty(name = "From",value = "发件人")
    private String from;
    @ApiModelProperty(name = "To",value = "收件人")
    private String To  ;
    @ApiModelProperty(name = "Cc",value = "抄送人")
    private String Cc;
    @ApiModelProperty(name = "subject",value = "主题",example = "主题")
    private String subject;
    private String date;
    private Long intnetdate;
    private String plain;
    private String html;

    private Integer status;
    @ApiModelProperty(name = "attachMentModels",value = "附件数组")
    private List<AttchmentModel> attachMentModels;

    private String label;

    @Override
    public Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
